package com.example.aircraftwar2024.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.example.aircraftwar2024.R;
import com.example.aircraftwar2024.game.BaseGame;

public class EndConnActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_end_conn);

        String score="您的分数："+ String.valueOf(BaseGame.score);
        String enemyScore = "对方的分数："+ String.valueOf(BaseGame.scoreEnemy);
        TextView scoreView=findViewById(R.id.connScore);
        TextView enemy_scoreView=findViewById(R.id.connEnemyScore);

        scoreView.setText(score);
        enemy_scoreView.setText(enemyScore);
    }
}